def solution(nums):
    if len(nums) <= 1:
        return 0
    else:
        return (nums-1)*2

